package edu.uw.cs.cse461.sp12.util;

import java.net.*;
import edu.uw.cs.cse461.sp12.util.Log;

public class IPFinder {
	
	private static final String TAG = "IPFinder";
	
	public static String getIpAddress(){
		try {
			InetAddress ownIP=InetAddress.getLocalHost();
			return ownIP.getHostAddress();
		} catch (Exception e) {
			Log.e(TAG, "Exception while retreving IP address: " + e.getMessage());
		}
		return null;
	}
}
